package com.azxcrm.project.system.order.domain;

import java.io.Serializable;

import com.azxcrm.framework.web.page.PageDomain;
import com.azxcrm.project.system.customer.domain.CustomerInfo;
import com.azxcrm.project.system.product.domain.ProductInfo;

/**
 * sys_order_deal 成单和退单
 * 
 * @author Dustyone
 * @date 2018-09-11
 */
public class OrderDeal extends PageDomain implements Serializable 
{
	private static final long serialVersionUID = 1L;
	
	/** 成单id */
	private Integer dealId;
	/** 成单状态：1财务成单，2线索成单，3已退款 */
	private Integer dealStatus;
	/** 订单id */
	private Integer orderId;
	/** 客户身份证 */
	private String customerIdentity;
	/** 合同号 */
	private String contractId;
	/** 合同源文件URL */
	private String contractCertificate;
	/** 成单时间 */
	private String dealTime;
	/** 退款理由 */
	private String refundsReason;
	/** 退款凭证 */
	private String refundsCertificate;
	/** 退款时间 */
	private String refundsTime;
	/** 订单信息 */
	private Order order;
	/** 客户信息 */
	private CustomerInfo customerInfo;
	/** 订单信息 */
	private ProductInfo productInfo;
	 
	/**
	 * 设置：成单id
	 */
	public void setDealId(Integer dealId) 
	{
		this.dealId = dealId;
	}
	
	/**
	 * 获取：成单id
	 */
	public Integer getDealId() 
	{
		return dealId;
	}
	
	/**
	 * 设置：成单状态：1财务成单，2线索成单，3已退款
	 */
	public void setDealStatus(Integer dealStatus) 
	{
		this.dealStatus = dealStatus;
	}
	
	/**
	 * 获取：成单状态：1财务成单，2线索成单，3已退款
	 */
	public Integer getDealStatus() 
	{
		return dealStatus;
	}
	
	/**
	 * 设置：订单id
	 */
	public void setOrderId(Integer orderId) 
	{
		this.orderId = orderId;
	}
	
	/**
	 * 获取：订单id
	 */
	public Integer getOrderId() 
	{
		return orderId;
	}
	
	/**
	 * 设置：客户身份证
	 */
	public void setCustomerIdentity(String customerIdentity) 
	{
		this.customerIdentity = customerIdentity;
	}
	
	/**
	 * 获取：客户身份证
	 */
	public String getCustomerIdentity() 
	{
		return customerIdentity;
	}
	
	/**
	 * 设置：合同号
	 */
	public void setContractId(String contractId) 
	{
		this.contractId = contractId;
	}
	
	/**
	 * 获取：合同号
	 */
	public String getContractId() 
	{
		return contractId;
	}
	
	/**
	 * 设置：合同源文件URL
	 */
	public void setContractCertificate(String contractCertificate) 
	{
		this.contractCertificate = contractCertificate;
	}
	
	/**
	 * 获取：合同源文件URL
	 */
	public String getContractCertificate() 
	{
		return contractCertificate;
	}
	
	/**
	 * 设置：成单时间
	 */
	public void setDealTime(String dealTime) 
	{
		this.dealTime = dealTime;
	}
	
	/**
	 * 获取：成单时间
	 */
	public String getDealTime() 
	{
		return dealTime;
	}
	
	/**
	 * 设置：退款理由
	 */
	public void setRefundsReason(String refundsReason) 
	{
		this.refundsReason = refundsReason;
	}
	
	/**
	 * 获取：退款理由
	 */
	public String getRefundsReason() 
	{
		return refundsReason;
	}
	
	/**
	 * 设置：退款凭证
	 */
	public void setRefundsCertificate(String refundsCertificate) 
	{
		this.refundsCertificate = refundsCertificate;
	}
	
	/**
	 * 获取：退款凭证
	 */
	public String getRefundsCertificate() 
	{
		return refundsCertificate;
	}
	
	/**
	 * 设置：退款时间
	 */
	public void setRefundsTime(String refundsTime) 
	{
		this.refundsTime = refundsTime;
	}
	
	/**
	 * 获取：退款时间
	 */
	public String getRefundsTime() 
	{
		return refundsTime;
	}
	
	public Order getOrder() {
		return order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}

	public CustomerInfo getCustomerInfo() {
		return customerInfo;
	}

	public void setCustomerInfo(CustomerInfo customerInfo) {
		this.customerInfo = customerInfo;
	}

	public ProductInfo getProductInfo() {
		return productInfo;
	}

	public void setProductInfo(ProductInfo productInfo) {
		this.productInfo = productInfo;
	}

	/**
	 * 成单构造器
	 * @param dealStatus
	 * @param orderId
	 * @param customerIdentity
	 * @param contractId
	 * @param contractCertificate
	 */
	public OrderDeal(Integer dealStatus, Integer orderId, String customerIdentity, String contractId,String contractCertificate) {
		super();
		this.dealStatus = dealStatus;
		this.orderId = orderId;
		this.customerIdentity = customerIdentity;
		this.contractId = contractId;
		this.contractCertificate = contractCertificate;	
	}
	
	/**
	 * 退单构造器
	 * @param dealStatus
	 * @param orderId
	 * @param refundsCertificate
	 */
	public OrderDeal(Integer dealStatus, Integer orderId,String refundsCertificate) {
		super();
		this.dealStatus = dealStatus;
		this.orderId = orderId;
		this.refundsCertificate = refundsCertificate;
	}
	

	public OrderDeal(Integer dealStatus, Integer orderId,String refundsReason,String refundsCertificate) {
		super();
		this.dealStatus = dealStatus;
		this.orderId = orderId;
		this.refundsReason = refundsReason;
		this.refundsCertificate = refundsCertificate;
	}
	/***
	 * 
	 */
	public OrderDeal() {
		super();
	}
	
}
